import request from '@/utils/request'

export default {
    //1 查询个人信息
    getProfile(){
        return request({
            url:'/educenter/admin/getProfile',
            method:'get'
        })
    },
    //更新管理员用户名
    updateProfile(admin){
        return request({
            url:'/educenter/admin/updateProfile',
            method:'post',
            data: admin
        })
    },
    //更新管理员真实姓名
    updateNickname(admin){
        return request({
            url:'/educenter/admin/updateNickname',
            method:'post',
            data: admin
        })
    },
    updatePassword(admin){
        return request({
            url: '/educenter/admin/updatePassword',
            method: 'post',
            data: admin
        })
    }
}